package com.yantong.mapper;

import com.yantong.pojo.ActivityProduct;
import com.yantong.pojo.ActivityProductExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ActivityProductMapper {
    long countByExample(ActivityProductExample example);

    int deleteByExample(ActivityProductExample example);

    int deleteByPrimaryKey(Long id);

    int insert(ActivityProduct record);

    int insertSelective(ActivityProduct record);

    List<ActivityProduct> selectByExample(ActivityProductExample example);

    ActivityProduct selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") ActivityProduct record, @Param("example") ActivityProductExample example);

    int updateByExample(@Param("record") ActivityProduct record, @Param("example") ActivityProductExample example);

    int updateByPrimaryKeySelective(ActivityProduct record);

    int updateByPrimaryKey(ActivityProduct record);

    ActivityProduct selectPriceByActivityId(@Param("activityId") Long activityId);
    List<ActivityProduct> selectActivityProductByActivityId(Long activityId);

    List<ActivityProduct> getBuyShops(Long mid);
}